package spring.JUNIT.IOC;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import spring.JUNIT.UnitTestBase;


@RunWith(BlockJUnit4ClassRunner.class)
public class TestInjection extends UnitTestBase {

	public TestInjection() {
		super("D:/spring/spring-ioc.xml");

	}

	@Test
	public void testSetter() {
		InjectionService service = super.getBean("InjectionService");
		service.save("这是要保存的数据");
	}

	@Test
	public void testCons() {
		InjectionService service = super.getBean("InjectionService");
		service.save("这是要保存的数据");
	}
}
